import request from '@/utils/request'

// 根据系统类型获取区域
export function getAreaTree(treeType) {
  return request({
    url: '/basedata/meterSheets/getAreaTree?treeType=' + treeType,
    method: 'get',
  })
}
// 获取用户绑定区域
export function getSheetsTree(query) {
  return request({
    url: '/basedata/meterSheets/getAreaTree',
    method: 'get',
    params: query
  })
}

// 获取用户绑定区域
export function getAreaPermissionsByUserId(query) {
  return request({
    url:'/basedata/meterSheets/getAreaPermissionsByUserId',
    method: 'get',
    params: query
  })
}
